import {requestInfo} from '@/api/public.js'
import {http} from '@/api/service.js'
export class addressService {
    //新增保存收获地址
    static saveShippingAddress (shippingAddress) {
        const query = {}
        return requestInfo({
            url: '/mall/User/ShippingAddress/saveShippingAddress',
            method: 'POST',
            params: query,
            data: shippingAddress
        });
    }
    //修改保存收获地址
    static updateShippingAddress (shippingAddress) {
        const query = {}
        return requestInfo({
            url: '/mall/User/ShippingAddress/updateShippingAddress',
            method: 'POST',
            params: query,
            data: shippingAddress
        });
    }
    //根据ID查询指定的收获地址(包含外键名称)
    static findShippingAddressForView (shippingAddressId) {
        const query = {
            shippingAddressId
        }
        return requestInfo({
            url: '/mall/User/ShippingAddress/findShippingAddressForView',
            method: 'POST',
            params: query,
        });
    }


}